package com.jinzhi.wxpay.controller;



import com.jinzhi.wxpay.config.WxPayConfigZF;
import com.jinzhi.wxpay.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "测试控制器")
@RestController
@RequestMapping("/api/test")
public class TestController2 {


    @Resource
    private WxPayConfigZF wxPayConfigZF;//引入参数对象、

    @GetMapping
    public R getWxPayConfig(){
        String  mchId = wxPayConfigZF.getMchId();
        return R.ok().data("mchId",mchId);



    }







}
